<html>
<head><meta charset="utf-8"><title>MPL 2.0 · t-core/licensing · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/231349-t-core/licensing/index.html">t-core/licensing</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/231349-t-core/licensing/topic/MPL.202.2E0.html">MPL 2.0</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="206368374"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/231349-t-core/licensing/topic/MPL%202.0/near/206368374" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/231349-t-core/licensing/topic/MPL.202.2E0.html#206368374">(Aug 08 2020 at 23:15)</a>:</h4>
<p>I'm working on some generation of the firefox profile format for <a href="http://perf.rust-lang.org">perf.rust-lang.org</a>, and using the definitions here: <a href="https://github.com/firefox-devtools/profiler/blob/main/src/types/profile.js">https://github.com/firefox-devtools/profiler/blob/main/src/types/profile.js</a>.</p>
<p>I'm not sure what I need to do to accurately represent the license of that work, though.</p>
<p>perf.rust-lang.org's site is currently licensed as just MIT.</p>



<a name="206370164"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/231349-t-core/licensing/topic/MPL%202.0/near/206370164" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/231349-t-core/licensing/topic/MPL.202.2E0.html#206370164">(Aug 09 2020 at 00:03)</a>:</h4>
<p>How are you using those definitions?</p>



<a name="206370192"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/231349-t-core/licensing/topic/MPL%202.0/near/206370192" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/231349-t-core/licensing/topic/MPL.202.2E0.html#206370192">(Aug 09 2020 at 00:03)</a>:</h4>
<p>Are you embedding them in compiled code powering the perf site (or a crate used by that site), or are you providing definitions as a data file of some kind?</p>



<a name="206370801"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/231349-t-core/licensing/topic/MPL%202.0/near/206370801" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/231349-t-core/licensing/topic/MPL.202.2E0.html#206370801">(Aug 09 2020 at 00:14)</a>:</h4>
<p>serde struct definitions</p>



<a name="206370804"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/231349-t-core/licensing/topic/MPL%202.0/near/206370804" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/231349-t-core/licensing/topic/MPL.202.2E0.html#206370804">(Aug 09 2020 at 00:14)</a>:</h4>
<p>which will, I guess, get lowered into compiled code</p>



<a name="206371167"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/231349-t-core/licensing/topic/MPL%202.0/near/206371167" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/231349-t-core/licensing/topic/MPL.202.2E0.html#206371167">(Aug 09 2020 at 00:28)</a>:</h4>
<p>So, MPL just says that you're required to apply the MPL to the <em>file</em> that was originally licensed under MPL. Not the entire project.</p>



<a name="206371198"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/231349-t-core/licensing/topic/MPL%202.0/near/206371198" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/231349-t-core/licensing/topic/MPL.202.2E0.html#206371198">(Aug 09 2020 at 00:30)</a>:</h4>
<p>Which means it <em>should</em> suffice to 1) put the code derived from that source in a separate file, 2) copy the notice from atop the original file (prefaced with <code>// based on URL which had the license:</code>), and 3) include a copy of the MPL in the source.<br>
You should also update the crate licensing, but for that, I'd suggest putting this in a separate crate and marking that crate as <code>license = "MPL-2.0"</code>.</p>



<a name="206372287"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/231349-t-core/licensing/topic/MPL%202.0/near/206372287" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/231349-t-core/licensing/topic/MPL.202.2E0.html#206372287">(Aug 09 2020 at 01:07)</a>:</h4>
<p>hm the crate licensing I think is just not declared at all (it's not published anywhere)</p>



<a name="206372293"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/231349-t-core/licensing/topic/MPL%202.0/near/206372293" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/231349-t-core/licensing/topic/MPL.202.2E0.html#206372293">(Aug 09 2020 at 01:07)</a>:</h4>
<p>but the rest sounds reasonable, thanks!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>